package com.vunguyen.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

import com.vunguyen.model.Phieubaonghi;
import com.vunguyen.service.PhieuDangKyService;

@Controller
public class PdfViewController {
	@Autowired
	private PhieuDangKyService phieuDangKyService;
	
	@RequestMapping(value = "QLKhoaCNTT/downloadPDF", method = RequestMethod.GET)
	public ModelAndView downloadExcel() {
		List<Phieubaonghi> listPhieuBaoNghi = phieuDangKyService.getListPhieubaonghi();
		return new ModelAndView("pdfView", "listPhieuBaoNghi", listPhieuBaoNghi);
	}
	

}
